// 获取部门列表
import request from '@/utils/request'
export function getdept() {
  return request.get('/company/department')
}
// 获取部门负责人

export function getdeptman() {
  return request('/sys/user/simple')
}
// 新增子部门
export function addnewdept(data) {
  return request.post('/company/department', data)
}
// 部门详情
export function detaildept(id) {
  return request.get('/company/department/' + id)
}
// 修改部门
export function editdept(data) {
  return request.put('/company/department/' + data.id, data)
}
/**
 * 删除部门
 *
*/

export function delDepartment(id) {
  return request({
    method: 'delete',
    url: `/company/department/${id}`
  })
}
